package cn.imvc.util;

import cn.imvc.app.domains.IPayChannel;

public class BiService {
	private String companyCode;
	private String companyName;
	private String ecCode;
	private String ecName;
	private String cbeCode;
	private String cbeName;
	private String ecpCodeCiq;
	private String ecpNameCiq;
	private String ecpCodeCus;
	private String ecpNameCus;
	private String idNumber;
	private String agentCodeCiq;
	private String agentCodeCus;
	private String agentNameCiq;
	private String agentNameCus;
	private String logisticsCodeCiq;
	private String logisticsCodeCus;
	private String logisticsNameCiq;
	private String logisticsNameCus;
	private String shipper;
	private String shipperAddress;
	private String shipperTelephone;
	private String publicKey;
	private String companyKey;
	private String pushOrderUrl;
	private String logisticsMateUrl;
	private String orderStatusUrl;
	private final String paymentCode_ali = "P0001";
	private final String paymentName_ali = "支付宝（中国）网络技术有限公司";
	private final String paymentCode_wx = "P0015";
	private final String paymentName_wx = "财付通支付科技有限公司";
	
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getEcCode() {
		return ecCode;
	}
	public void setEcCode(String ecCode) {
		this.ecCode = ecCode;
	}
	public String getEcName() {
		return ecName;
	}
	public void setEcName(String ecName) {
		this.ecName = ecName;
	}
	public String getCbeCode() {
		return cbeCode;
	}
	public void setCbeCode(String cbeCode) {
		this.cbeCode = cbeCode;
	}
	public String getCbeName() {
		return cbeName;
	}
	public void setCbeName(String cbeName) {
		this.cbeName = cbeName;
	}
	public String getEcpCodeCiq() {
		return ecpCodeCiq;
	}
	public void setEcpCodeCiq(String ecpCodeCiq) {
		this.ecpCodeCiq = ecpCodeCiq;
	}
	public String getEcpNameCiq() {
		return ecpNameCiq;
	}
	public void setEcpNameCiq(String ecpNameCiq) {
		this.ecpNameCiq = ecpNameCiq;
	}
	public String getEcpCodeCus() {
		return ecpCodeCus;
	}
	public void setEcpCodeCus(String ecpCodeCus) {
		this.ecpCodeCus = ecpCodeCus;
	}
	public String getEcpNameCus() {
		return ecpNameCus;
	}
	public void setEcpNameCus(String ecpNameCus) {
		this.ecpNameCus = ecpNameCus;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	public String getAgentCodeCiq() {
		return agentCodeCiq;
	}
	public void setAgentCodeCiq(String agentCodeCiq) {
		this.agentCodeCiq = agentCodeCiq;
	}
	public String getAgentCodeCus() {
		return agentCodeCus;
	}
	public void setAgentCodeCus(String agentCodeCus) {
		this.agentCodeCus = agentCodeCus;
	}
	public String getAgentNameCiq() {
		return agentNameCiq;
	}
	public void setAgentNameCiq(String agentNameCiq) {
		this.agentNameCiq = agentNameCiq;
	}
	public String getAgentNameCus() {
		return agentNameCus;
	}
	public void setAgentNameCus(String agentNameCus) {
		this.agentNameCus = agentNameCus;
	}
	public String getLogisticsCodeCiq() {
		return logisticsCodeCiq;
	}
	public void setLogisticsCodeCiq(String logisticsCodeCiq) {
		this.logisticsCodeCiq = logisticsCodeCiq;
	}
	public String getLogisticsCodeCus() {
		return logisticsCodeCus;
	}
	public void setLogisticsCodeCus(String logisticsCodeCus) {
		this.logisticsCodeCus = logisticsCodeCus;
	}
	public String getLogisticsNameCiq() {
		return logisticsNameCiq;
	}
	public void setLogisticsNameCiq(String logisticsNameCiq) {
		this.logisticsNameCiq = logisticsNameCiq;
	}
	public String getLogisticsNameCus() {
		return logisticsNameCus;
	}
	public void setLogisticsNameCus(String logisticsNameCus) {
		this.logisticsNameCus = logisticsNameCus;
	}
	
	public String getShipper() {
		return shipper;
	}
	public void setShipper(String shipper) {
		this.shipper = shipper;
	}
	public String getShipperAddress() {
		return shipperAddress;
	}
	public void setShipperAddress(String shipperAddress) {
		this.shipperAddress = shipperAddress;
	}
	public String getShipperTelephone() {
		return shipperTelephone;
	}
	public void setShipperTelephone(String shipperTelephone) {
		this.shipperTelephone = shipperTelephone;
	}
	public String getPublicKey() {
		return publicKey;
	}
	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}
	public String getCompanyKey() {
		return companyKey;
	}
	public void setCompanyKey(String companyKey) {
		this.companyKey = companyKey;
	}
	public String getPushOrderUrl() {
		return pushOrderUrl;
	}
	public void setPushOrderUrl(String pushOrderUrl) {
		this.pushOrderUrl = pushOrderUrl;
	}
	public String getLogisticsMateUrl() {
		return logisticsMateUrl;
	}
	public void setLogisticsMateUrl(String logisticsMateUrl) {
		this.logisticsMateUrl = logisticsMateUrl;
	}
	public String getOrderStatusUrl() {
		return orderStatusUrl;
	}
	public void setOrderStatusUrl(String orderStatusUrl) {
		this.orderStatusUrl = orderStatusUrl;
	}
	
	public String getPaymentCode(byte payChannel){
		if(payChannel == IPayChannel.aliPayApp.getValue() || payChannel == IPayChannel.aliPayH5.getValue() || payChannel == IPayChannel.aliPayScanCode.getValue()){
			return paymentCode_ali;
		}else if(payChannel == IPayChannel.wxPayApp.getValue() || payChannel == IPayChannel.wxPayH5.getValue() || payChannel == IPayChannel.wxPayScanCode.getValue()){
			return paymentCode_wx;
		}else{
			return "";
		}
	}
	
	public String getPaymentName(byte payChannel){
		if(payChannel == IPayChannel.aliPayApp.getValue() || payChannel == IPayChannel.aliPayH5.getValue() || payChannel == IPayChannel.aliPayScanCode.getValue()){
			return paymentName_ali;
		}else if(payChannel == IPayChannel.wxPayApp.getValue() || payChannel == IPayChannel.wxPayH5.getValue() || payChannel == IPayChannel.wxPayScanCode.getValue()){
			return paymentName_wx;
		}else{
			return "";
		}
	}
}
